<template>
  <div class="box">
    <div class="updiv">
      <img class="upimg" src="../image/上一题.png">
      <span class="upspan">上一题</span>
    </div>

    <div class="querydiv">
      <button class="query" style="vertical-align:middle"><span>查看</span></button>
    </div>

    <div class="submitdiv">
      <button class="submit">
        <div class="svg-wrapper-1">
          <div class="svg-wrapper">
            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
              <path fill="none" d="M0 0h24v24H0z"></path>
              <path fill="currentColor"
                    d="M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.529-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685z"></path>
            </svg>
          </div>
        </div>
        <span>提交</span>
      </button>
    </div>

    <div class="nextdiv">
      <span class="nextspan">下一题</span>
      <img class="nextimg" src="../image/下一题.png">
    </div>
  </div>
</template>

<script>

export default {
  data() {
    return {};
  },
  name: 'BottomSelect',
  components: {},
  setup() {
    return {}
  }
};
</script>

<style scoped>
.box {
  /* 父容器开启flex布局 */
  display: flex;
  /* 水平垂直居中 */
  justify-content: center;
  align-items: center;
}

.submit {
  font-family: inherit;
  font-size: 12px;
  background: royalblue;
  color: white;
  padding: 0.7em 1em;
  padding-left: 0.9em;
  display: flex;
  align-items: center;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
}

.submit span {
  display: block;
  margin-left: 0.3em;
  transition: all 0.3s ease-in-out;
}

.submit svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}

.submit:hover .svg-wrapper {
  animation: fly-1 0.6s ease-in-out infinite alternate;
}

.submit:hover svg {
  transform: translateX(1.2em) rotate(45deg) scale(1.1);
}

.submit:hover span {
  transform: translateX(5em);
}

.submit:active {
  transform: scale(0.95);
}

@keyframes fly-1 {
  from {
    transform: translateY(0.1em);
  }

  to {
    transform: translateY(-0.1em);
  }
}

.query {
  display: inline-block;
  border-radius: 7px;
  border: none;
  background: #1875FF;
  color: white;
  font-family: inherit;
  text-align: center;
  font-size: 12px;
  box-shadow: 0px 14px 56px -11px #1875FF;
  width: 10em;
  padding: 1em;
  transition: all 0.4s;
  cursor: pointer;
}

.query span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.4s;
}

.query span:after {
  content: '上次提交';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.7s;
}

.query:hover span {
  padding-right: 4em;
}

.query:hover span:after {
  opacity: 4;
  right: 0;
}

.querydiv {
  margin-left: 30%;
  margin-right: 3%;
}

.submitdiv {
  margin-right: 30%;
}

.nextimg {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.upimg {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.upspan{
  color: #7dc5eb;
  cursor: pointer;
}

.nextspan{
  color: #7dc5eb;
  cursor: pointer;
}
</style>